package com.example.amusic.service

import androidx.media3.common.Player

sealed class PlayState {
    data object Idle : PlayState()
    data object Preparing : PlayState()
    data object Playing : PlayState()
    data object Pause : PlayState()

    val isIdle: Boolean
        get() = this is Idle
    val isPreparing: Boolean
        get() = this is Preparing
    val isPlaying: Boolean
        get() = this is Playing
    val isPause: Boolean
        get() = this is Pause
}